﻿@model RightControl.Model.ProductDetail
@using System.Collections.Generic;
@using RightControl.Model;
@{

    ViewBag.Title = "产品图库";
    Layout = "~/Areas/Admin/Views/Shared/_LayoutForm.cshtml";
}

<div class="layui-fluid" style="min-height: 50px; height: 1200px;">
    <div class="layui-form-item">
        <label class="layui-form-label">产品图库:</label>
        <div class="layui-input-block">
            <ul class="ulImages">
                @{
                    List<ProductImage> images = ViewData["productImags"] as List<ProductImage>;
                    if (images != null) {
                        for (int i = 0; i < images.Count; i++) {
                            if (images[i].ImgType == 2) {
                                <li id="@images[i].Id">
                                    <div style="position: absolute; ">
                                        <input type="checkbox" class="close" />
                                        <img style="width:140px;height:140px" src="@images[i].ImgUrl" />
                                    </div>
                                </li>
                            }
                        }
                    }
                }
            </ul>
        </div>
    </div>
</div>

